import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/Home/MyHome.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('../views/Login/MyLogin.vue')
  },
  {
    path: '/cart',
    name: 'cart',
    component: () => import('../views/Cart/MyCart.vue')
  },
  {
    path: '/order',
    name: 'order',
    component: () => import('../views/Order/MyOrder.vue')
  },
  {
    path: '/detail',
    name: 'detail',
    component: () => import('../views/Detail/MyDetail.vue')
  },
  {
    path: '/register',
    name: 'register',
    component: () => import('../views/Register/RegiSter.vue')
  },
  {
    path: '/box',
    name: 'box',
    component: () => import('../components/BoxDiv.vue')
  },

]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
